From: Jasper St. Pierre Date: Mon, 14 Oct 2013 14:52:45 +0000 (-0400) Subject: shell-global: Use G_VARIANT_TYPE macro for checking X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3211 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cb7a2e8c6ab229c71c08f9e76cefc4918edf7f90;p=gnome-shell.git shell-global: Use G_VARIANT_TYPE macro for checking --- diff --git a/src/shell-global.c b/src/shell-global.c index 95787a5d8..e711dff09 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1819,7 +1819,7 @@ shell_global_get_runtime_state (ShellGlobal *global, else { GBytes *bytes = g_mapped_file_get_bytes (mfile); - res = g_variant_new_from_bytes ((GVariantType*)property_type, bytes, TRUE); + res = g_variant_new_from_bytes (G_VARIANT_TYPE (property_type), bytes, TRUE); g_bytes_unref (bytes); g_mapped_file_unref (mfile); }